import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import { SysComponent } from './sys.component';

const sysRoutes = [
  {
    path: '',
    component: SysComponent,
    children: [
      { path: '', redirectTo:'sysList', pathMathch: 'full'},
      {
        path: 'sysList',
        component: SysComponent
      }
    ]
  }
];

@NgModule({
  imports: [
    RouterModule.forChild(sysRoutes)
  ],
  exports: [
    RouterModule
  ]
})
export class SysRoutingModule {

}
